package com.hcr.elecident.wxapi;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;

import com.hcr.elecident.PageActivity;
import com.jia.jsesaypaylibrary.wxpay.JsWXPayHandler;


public class WXPayEntryActivity extends JsWXPayHandler {


    @Override
    public void create(Bundle bundle) {
    }

    @Override
    public void paySuccess() {
        Toast.makeText(this,"支付成功",Toast.LENGTH_LONG).show();
        finish();

        Intent it = new Intent(this, PageActivity.class);
        startActivity(it);
    }

    @Override
    public void payCancel() {
        Toast.makeText(this,"取消支付",Toast.LENGTH_LONG).show();
        finish();
    }

    @Override
    public void payFail() {
        Toast.makeText(this,"支付失败",Toast.LENGTH_LONG).show();
        finish();
    }
}
